class MyProjectModel {
  int? errcode;
  String? errmsg;
  List<MyProjectItemModel>? data;
  String? message;

  MyProjectModel({this.errcode, this.errmsg, this.data, this.message});

  MyProjectModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <MyProjectItemModel>[];
      json['data'].forEach((v) {
        data!.add(new MyProjectItemModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class MyProjectItemModel {
  int? id;
  String? name;
  String? description;
  String? managerName;
  List<String>? tagName;
  String? dateStart;
  String? dateEnd;
  String? state;
  int? taskNums;
  int? progress;

  MyProjectItemModel(
      {this.id,
        this.name,
        this.description,
        this.managerName,
        this.tagName,
        this.dateStart,
        this.dateEnd,
        this.state,
        this.taskNums,
        this.progress});

  MyProjectItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    description = json['description'];
    managerName = json['manager_name'];
    tagName = json['tag_name'].cast<String>();
    dateStart = json['date_start'];
    dateEnd = json['date_end'];
    state = json['state'];
    taskNums = json['task_nums'];
    progress = json['progress'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['description'] = this.description;
    data['manager_name'] = this.managerName;
    data['tag_name'] = this.tagName;
    data['date_start'] = this.dateStart;
    data['date_end'] = this.dateEnd;
    data['state'] = this.state;
    data['task_nums'] = this.taskNums;
    data['progress'] = this.progress;
    return data;
  }
}


